import { Injectable, EventEmitter } from '@angular/core';

import { AuthorizedAppApirequest } from '../ApiRequest/AuthorizedApp.Apirequest';
import { authorizedAppServiceInterface } from './interface/authorizeapp.service.interface';
@Injectable()
export class AuthorizedAppService implements authorizedAppServiceInterface {

  async getAuthorizedApp(userId?: string): Promise<any> {
    return this.authorizedAppApirequest.getAuthorizedApp(userId);
  }

  async updateAuthorizedApp(UserId: string, AppIds: string[]): Promise<any> {
    return this.authorizedAppApirequest.updateAuthorizedApp(UserId, AppIds);;
  }

  constructor(
    private authorizedAppApirequest: AuthorizedAppApirequest
  ) { }

}